package com.example.lbstest.impl;

import com.example.lbstest.mapper.CardMapper;
import com.example.lbstest.mapper.ScoreMapper;
import com.example.lbstest.pojo.Card;
import com.example.lbstest.pojo.Score;
import com.example.lbstest.service.CardMapperService;
import com.example.lbstest.service.ScoreMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScoreMapperServiceImpl implements ScoreMapperService {
    @Autowired
    ScoreMapper scoreMapper;

    @Override
    public int insertOneScore(Score score) {
        return scoreMapper.insertOneScore(score);
    }

    @Override
    public Score selectOnePersonScore(String student_number, String class_number, String test_name) {
        return scoreMapper.selectOnePersonScore(student_number, class_number, test_name);
    }


    @Override
    public List<Score> selectScoreList(String class_number, String test_name) {
        return scoreMapper.selectScoreList(class_number, test_name);
    }

    @Override
    public int selectScoreMax(String class_number, String test_name) {
        return scoreMapper.selectScoreMax(class_number, test_name);
    }

    @Override
    public List<String> selectTestName(String class_number) {
        return scoreMapper.selectTestName(class_number);
    }
}
